package com.antovita.militarymonkey.service;
//tick tack
public class TickTime {
	private long lastTime;
	private long currentTime;
	public void init()
	{
		lastTime = System.currentTimeMillis();
		currentTime = 0;
	}
	
	public long getTick()
	{
		currentTime = System.currentTimeMillis();
		return currentTime - lastTime;		
	}
	
	public void saveCurrent()
	{
		lastTime = currentTime;
	}
}
